<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>比较两个数的最大值</title>
		<script type="text/javascript">
			
			var data1 = prompt('请输入第一个数:');
			var data2 = prompt('请输入第二个数:');
			
			var temp = data1 > data2 ? data1 : data2
			alert(temp)
			
		</script>
	</head>
	<body>
	</body>
</html>
